package edu.zut;
import java.util.Scanner;
public class ElseDemo {
    public static void main(String[] args){
        int score;
        Scanner input = new Scanner(System.in);
        score = input.nextInt();
        if (score<=100&&score>=0)
        {
            if (score>=90)
                System.out.println("优秀！");
            else if (score>=60)
                System.out.println("合格");
            else
                System.out.println("不及格");
        }
        else
            System.out.println("Error");
    }
}
